package com.oceansoft.mobile.biz.admin.service;

import com.oceansoft.mobile.biz.admin.entity.Count;
import com.oceansoft.mobile.common.base.entity.Pager;
import com.oceansoft.mobile.common.base.entity.Query;
import com.oceansoft.mobile.common.base.entity.Result;
import com.oceansoft.mobile.weixin.entity.message.req.SuperMessage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.util.Map;

/**
 * Created by BEN on 2016/4/12.
 */
public interface ICountAdminService {

    public Pager findCountList(Query query, String start, String end);

    public Pager findSumList(Query query, String start, String end);

    public Pager<SuperMessage> loadNewsByPage(String toUserName, Query query, String start, String end) throws Exception;
/**
 * 导出数据方法
 * @param request
 * @param response
 * @param doctype
 * @param daocmode
 * @param nqxMap
 */
    public void export(HttpServletRequest request, HttpServletResponse response,String doctype, String daocmode, Map<String, Object> nqxMap);
/**
 * 根据时间查询菜单的点击量，提交量，以及来源
 * @param query
 * @param start
 * @param end
 * @param id
 * @return
 */
	public Pager findCountInfo(Query query, String start, String end, String id);
	/*
	public Pager findCountShowInfo(Query query, String start, String end, String id,String source);*/
	/**
	 * 根据时间，查询分局以及分局下的各个派出所二维码扫描数据统计
	 * @param query
	 * @param start
	 * @param end
	 * @param id
	 * @param source
	 * @param request
	 * @return
	 */
	public Pager<Count> findCountShowIn(Query query, String start, String end, String id, String source, HttpServletRequest request);
	/*public Pager<Count> findCountIn(Query query, String start, String end, String id);*/
	
	/**
	 * 查询各个分局（包含下面派出所的数据）的二维码扫描数据统计
	 * @param query
	 * @param start
	 * @param end
	 * @param id
	 * @return
	 */
	public Pager findCountshoe(Query query, String start, String end, String id);

	Result addewm(String sourceid, String sourceName, String secondName, String url) throws Exception;
/*	public Pager<Count> findCountshow(Query query, String start, String end, String id);
*/	

}
